#ifndef ADDCOMMODITYWIDGET_H
#define ADDCOMMODITYWIDGET_H

#include <QWidget>
#include <QSqlQuery>
#include "mainwidget.h"

namespace Ui {
class AddCommodityWidget;
}

class AddCommodityWidget : public QWidget
{
    Q_OBJECT

public:
    explicit AddCommodityWidget(QWidget *parent = nullptr);
    ~AddCommodityWidget();

    void closeEvent(QCloseEvent *event);

    QString stockClassifiaction;
signals:
    void windowClosed(); // 新增自定义关闭信号
private slots:
    void on_pushButton_addCom_clicked();

    void on_pushButton_cancel_clicked();

private:
    Ui::AddCommodityWidget *ui;
};

#endif // ADDCOMMODITYWIDGET_H
